package com.bobo.mall.product.feign;

import com.bobo.common.to.SkuRedutionTo;
import com.bobo.common.to.SpuBoundTo;
import com.bobo.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "mall-coupon")
public interface CouponFeignService {

    /**
     * springcloud的远程服务调用
     *  1、
     * @param spuBoundTo
     * @return
     */

    @PostMapping("/coupon/spubounds/save")
    R savaSpuBounds(@RequestBody SpuBoundTo spuBoundTo);

    @PostMapping("/coupon/skufullreduction/saveInfo")
    R saveSkuRedution(@RequestBody SkuRedutionTo skuRedutionTo);
}
